package controller

import (
	"github.com/gin-gonic/gin"
	"net/http"
)

func SayHello(c *gin.Context)  {
	c.JSON(http.StatusOK, gin.H{
		"message": "hello golang and go-gin",
	})
}

func AsciiJson(c *gin.Context)  {
	data := map[string]interface{}{
		"name": "小傻子",
		"age":	24,
		"love":	"小臭猪",
		"tag":	"天真烂漫，善良可爱",
	}

	c.AsciiJSON(http.StatusOK, data)
}
